package hk.mapper;


import hk.entity.MyUser;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;


import java.util.List;
import java.util.Map;

public interface MyUserMapper {
    public MyUser SelectUserById(int id);

    public MyUser SelectByIdAndName(@Param("id") int id,@Param("name")String lastName);

    public int SelectCount();

    public MyUser SelectByUser(@Param("entity") MyUser user);

    public MyUser SelectMap(Map map);

    public List<MyUser> SelectOrder(String lastName);

    public  int InsertUser(MyUser myUser);

    public int UpdateUser(MyUser myUser);

    public int DeleteUser(int id);

    public Map SelectRetMap(int id);

    @MapKey("id")
    public Map<String,Object> SelectMapkey();
}
